go/parser.parser.error (method)

33 uses

	go/parser (current package)
		parser.go#L227: func (p *parser) error(pos token.Pos, msg string) {
		parser.go#L265: 	p.error(pos, msg)
		parser.go#L294: 		p.error(p.pos, "missing ',' before newline in "+context)
		parser.go#L326: 		p.error(p.pos, msg+" in "+context)
		parser.go#L550: 		p.error(p.pos, "unexpected comma; expecting ]")
		parser.go#L602: 			p.error(rbrack, "missing element type in array type expression")
		parser.go#L608: 		p.error(firstComma, "expected ']', found ','")
		parser.go#L867: 			p.error(pos, "all type parameters must be named")
		parser.go#L895: 				p.error(missingName, "all type parameters must be named")
		parser.go#L897: 				p.error(pos, "mixed named and unnamed parameters")
		parser.go#L950: 			p.error(tparams.Closing, "empty type parameter list")
		parser.go#L996: 		p.error(tparams.Pos(), "function type must have no type parameters")
		parser.go#L1028: 				p.error(lbrack, "interface method must have no type parameters")
		parser.go#L1489: 				p.error(colons[0], "2nd index required in 3-index slice")
		parser.go#L1493: 				p.error(colons[1], "3rd index required in 3-index slice")
		parser.go#L1506: 		p.error(firstComma, "expected ']' or ':', found ','")
		parser.go#L1650: 			p.error(len.Pos(), "expected array length, found '...'")
		parser.go#L1716: 				p.error(t.Pos(), "cannot parenthesize type in composite literal")
		parser.go#L1945: 		p.error(colon, "illegal label declaration")
		parser.go#L1981: 		p.error(p.safePos(x.End()), fmt.Sprintf("function must be invoked in %s statement", callType))
		parser.go#L2058: 	p.error(s.Pos(), fmt.Sprintf("expected %s, found %s (missing parentheses around composite literal?)", want, found))
		parser.go#L2067: 		p.error(p.pos, "missing condition in if statement")
		parser.go#L2080: 			p.error(p.pos, "var declaration not allowed in 'IF' initializer")
		parser.go#L2110: 			p.error(semi.pos, "unexpected newline, expecting { after if clause")
		parser.go#L2112: 			p.error(semi.pos, "missing condition in if statement")
		parser.go#L2209: 				p.error(t.TokPos, "expected ':=', found '='")
		parser.go#L2522: 			p.error(pos, "invalid import path: "+path)
		parser.go#L2561: 			p.error(pos, "missing variable type or initialization")
		parser.go#L2565: 			p.error(pos, "missing constant value")
		parser.go#L2775: 		p.error(tparams.Opening, "method must have no type parameters")
		parser.go#L2789: 			p.error(p.pos, "unexpected semicolon or newline before {")
		parser.go#L2859: 		p.error(p.pos, "invalid package name _")
		parser.go#L2894: 		declErr = p.error